package com.ev.asl.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 条码管理
 * @author 姚家乐
 * @since 2021/6/21 16:02
 */
@Data
public class AslComplaintsVO implements Serializable {
    private static final long serialVersionUID = 1L;

    //自增主键
    @ApiModelProperty(value = "自增主键")
    private Long              id;

    @ApiModelProperty(value = "No")
    private String              complaintNo;

    @ApiModelProperty(value = "QA接收日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private String            receiveDate;

    @ApiModelProperty(value = "顾客名称")
    private String            customerName;

    @ApiModelProperty(value = "工厂")
    private String              factory;

    @ApiModelProperty(value = "产品名称")
    private String            productName;

    @ApiModelProperty(value = "规格")
    private String            specifications;

    @ApiModelProperty(value = "不良数量")
    private BigDecimal complaintQty;

    @ApiModelProperty(value = "不良名")
    private String            complaintName;

    @ApiModelProperty(value = "详细不良信息")
    private String              complaintDetail;

    @ApiModelProperty(value = "区分")
    private String              distinguish;

    @ApiModelProperty(value = "责任部署")
    private String           responsibilityDeployment;

    @ApiModelProperty(value = "不良Lot 履历", hidden = true)
    private String           badRecords;

    @ApiModelProperty(value = "制品生产年月", hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private String           productioDate;

    @ApiModelProperty(value = "m", hidden = true)
    private String           m;

    @ApiModelProperty(value = "原因", hidden = true)
    private String           result;

    @ApiModelProperty(value = "对策", hidden = true)
    private String           countermeasure;

    @ApiModelProperty(value = "回复时间", hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private String           replyTime;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人", hidden = true)
    private Long              createBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private String              createTime;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人", hidden = true)
    private Long              updateBy;


    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间", hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private String              updateTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private String              startDate;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private String              endDate;

    private Integer              offer;

    private Integer              limit;


}
